@charset "utf-8";

* {
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;
    background: url(../image/bg.jpg) no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box {
    width: 350px;
    height: 350px;
    border-top: 1px solid rgba(255,255,255,0.5);
    border-left: 1px solid rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    border-right: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    background: rgba(50,50,50,0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.box > h2 {
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.box .input-box {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.box .input-box label {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 5px;
}

.box .input-box input {
    letter-spacing: 1px;
    font-size: 14px;
    box-sizing: border-box;
    width: 250px;
    height: 35px;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.2);
    outline: none;
    padding: 0 12px;
    color: rgba(255,255,255,0.9);
    transition: 0.2s;
}

.box .input-box input:focus {
    border: 1px solid rgba(255,255,255,0.8);
}

.box .btn-box {
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.box .btn-box > a {
    outline: none;
    display: block;
    width: 250px;
    text-align: end;
    text-decoration: none;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
}

.box .btn-box > a:hover {
    color: rgba(255,255,255,1);
}

.box .btn-box > div {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box .btn-box > div > button {
    outline: none;
    margin-top: 10px;
    display: block;
    font-size: 14px;
    border-radius: 5px;
    transition: 0.2s;
}

.box .btn-box > div > button:nth-of-type(1) {
    width: 120px;
    height: 35px;
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(192, 119, 91, 0.7);
    background: rgba(192, 119, 91, 0.5);
}

.box .btn-box > div > button:nth-of-type(2) {
    width: 120px;
    height: 35px;
    margin-left: 10px;
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(192, 119, 91, 0.7);
    background: rgba(192, 119, 91, 0.5);
}

.box .btn-box > div > button:hover {
    border: 1px solid rgba(251, 128, 71, 0.7);
    background: rgba(251, 128, 71, 0.5);
}

/* 模态窗口背景 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

/* 模态内容框 */
.modal-content {
    background-color: #f7f7f7;
    margin: 10% auto;
    padding: 20px;
    border-radius: 15px; /* 圆角 */
    width: 30%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #ffd700; /* 边框 */
}

/* 关闭按钮样式 */
.close {
    color: #ff4500;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* 文本样式 */
.modal-content p {
    color: #333;
    font-size: 18px;
    text-align: center;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive; /* 卡通字体 */
}

/* 按钮样式 */
.modal-content button {
    background-color: #4caf50; /* 绿色按钮 */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-content button:hover {
    background-color: #45a049;
}

/* 卡通风格的按钮 */
#modal-button {
    background-color: #4CAF50; /* 绿色背景 */
    color: white; /* 白色文字 */
    padding: 10px 15px; /* 内边距 */
    border: none; /* 无边框 */
    border-radius: 10px; /* 圆角边框 */
    cursor: pointer; /* 鼠标悬停时的光标样式 */
    font-size: 16px; /* 字体大小 */
    font-family: 'Comic Sans MS', cursive, sans-serif; /* 卡通字体 */
    box-shadow: 0 4px #999; /* 阴影效果 */
    transition: all 0.2s; /* 过渡效果 */
}

#modal-button:hover {
    background-color: #45a049; /* 悬停时的背景颜色 */
}

#modal-button:active {
    background-color: #3e8e41;
    box-shadow: 0 2px #666; /* 按下时的阴影效果 */
    transform: translateY(2px); /* 按下时的位移效果 */
}
.modal-footer {
    display: flex;
    justify-content: center; /* 水平居中 */
    padding: 10px 0; /* 上下的内边距 */
}
